<div class="card-box">
    <div class="card-box-title">
        @if($useCreate)
            <a href="/{{ $path }}/create" class="layui-btn layui-btn-sm">添加</a>
        @endif
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-sm layui-btn-primary {{ $id }}-tree-tools" data-action="expand">展开</button>
            <button class="layui-btn layui-btn-sm layui-btn-primary {{ $id }}-tree-tools" data-action="collapse">折叠</button>
        </div>
    </div>

    <div class="card-box-content">
        <div class="dd" id="{{ $id }}">
            <ol class="dd-list">
                @each($branchView, $items, 'branch')
            </ol>
        </div>
    </div>

    <div class="card-box-footer">
        <button class="layui-btn layui-btn-sm {{ $id }}-save">保存</button>
        <button class="layui-btn layui-btn-sm layui-btn-primary _refresh">重置</button>
    </div>
</div>
